{% extends "blog/blog_base.html" %}
{% load blog_extras comment_honeypot comment_utils %}
{% load i18n %}

{% comment %} 
    Copyright (c) 2006-2007, PreFab Software Inc.
    Copyright (c) 2006, Andrew Gwozdziewycz apgwoz@gmail.com
	Copyright (c) 2008, aaloy - apsl.net
    All rights reserved. 
{% endcomment %}

{% block meta_description %}{{ object.headline }}{% endblock meta_description %}

{% block "browsertitle" %}
{{ object.headline }}
{% endblock %}

{% block "contentbody" %}
{% include "blog/includes/post.html" %}

{% get_public_comment_list for blog.entry object.id as comment_list %}
{% if comment_list %}

<h3 id="comments">{% trans "Comentaris" %}</h3>
{% for comment in comment_list %}
    <a name="c{{comment.id}}"></a>
    <h5 id="comentari_{{comment.id}}" class="quiet">
        <span class="square-blue">{{ forloop.counter }}</span> {% trans "Comentari de" %} <a href="{{comment.person_www}}" rel="nofollow" >{{comment.person_name}}</a>{% trans " a les " %}{{comment.submit_date|date:"h:m \de\l l j M \de Y"}}            
    </h5>
    <p class="box">{{comment.comment|urlize|linebreaksbr|removetags:"script embed object frameset frame iframe meta link style" }}</p>
    <hr class="space"/>
{% endfor %}

{% endif %}

{% get_public_trackback_list for blog.entry object.id as trackback_list %}
{% if trackback_list %}
<h5 name="trackbacks" id="trackbacks" class='block border'>{% trans "Trackbacks" %}</h5>
<br/>
{% for trackback in trackback_list %}
    {% include "comments/trackback_display.html" %}
{% endfor %}

{% endif %}

{% if not object.comments_closed %}
<h4 class="notice">{% trans "Afegeix un comentari" %}</h4>
{% comment_form for blog.entry object.id %}
{% else %}
<h5 class="notice">
    {% trans "Av&iacute;s: Els comentaris es tanquen autom&agrave;ticament als"%} {% BLOG_CLOSE_COMMENTS_INTERVAL %} {% trans " dies" %}
</h5>
{% endif %}
{% endblock %}

{% block "taglist" %}
{% include "blog/includes/popular_tags.html" %}
{% endblock %}
